using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using BusinessLogicLayer;
using EntityObjectLayer;


/// <summary>
/// Summary description for wsMark
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class wsMark : System.Web.Services.WebService
{
    private BLMark blm;
    public wsMark()
    {
        blm=new BLMark();
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public DataSet getClassList()
    {
        return blm.getClassList();
    }
    [WebMethod]
    public DataSet getAllPupilMark(string p)
    {
        return blm.getAllPupilMark(p);
    }
    [WebMethod]
    public DataSet getByClassAndSubject(string c,string s)
    {
        return blm.getByClassAndSubject(c,s);
    }
    [WebMethod]
    public DataSet getPupilList(string c)
    {
        return blm.getPupilList(c);
    }
    [WebMethod]
    public DataSet getPupilMark(string p,string s)
    {
        return blm.getPupilMark(p,s);
    }
    [WebMethod]
    public DataSet getSubject()
    {
        return blm.getSubject();
    }
    [WebMethod]
    public int updateMark(int id,double m)
    {
        return blm.updateMark(id,m);
    }
    [WebMethod]
    public int addMark(BEMark be)
    {
        return blm.addNewMark(be);
    }
    [WebMethod]
    public double calcAvgMark(string p,string s)
    {
        return blm.calcAvgMark(p,s);
    }
    [WebMethod]
    public double calcMarkByType(string p,BESummary sum)
    {
        return blm.calcMarkByType(p,sum);
    }
    [WebMethod]
    public string evalLearnAbl(string p, BESummary sum)
    {
        return blm.evalLearnAbl(p, sum);
    }
    


}

